package com.example.service.abstractfactory;

import com.example.service.abstractfactory.factoryimpl.ColorFactory;

/**
 * @author ChenXiaoBin
 * on 2020-07-28
 */
public class FactoryProducer {

    public static AbstractFactory getFactory(String choice){
        if(choice.equalsIgnoreCase("SHAPE")){
            return null;
        } else if(choice.equalsIgnoreCase("COLOR")){
            return new ColorFactory();
        }
        return null;
    }
}
